<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>接口文档</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
		
    </head>
    <body>
	<script>
        var host = window.location.protocol + '//' + window.location.host + '/dtree/';
        var cssDtree = '<link rel="stylesheet" href="' + host + 'dtree.css">';
        var cssMy = '<link rel="stylesheet" href="' + host + 'my.css">';
        var scriptDtree = '<scri'+'pt src="' + host + 'dtree.js"></scri'+'pt>';
        var scriptData = '<scri'+'pt src="' + host + 'data.js"></scri'+'pt>';
        document.write(cssDtree);
        document.write(cssMy);
        document.write(scriptDtree);
        document.write(scriptData);
	</script>

	<div style="" id="sidebar" >
	<script>
		d = new dTree('d');
			d.config.useIcons = false;

			for (var i=0; i<data.length; i++) {
				var info = data[i];
				if (info.hasOwnProperty('url')) {
					d.add(info.currentId, info.preId, info.name, info.url);
				} else {
					d.add(info.currentId, info.preId, info.name);
				}
			}

			document.write(d);
			d.closeAll();

			var currentNode = getQueryString();
			var currentId = parseInt(currentNode['id']);
			if ((currentId | 0) === currentId) {
				d.openTo(currentId);
				//d.openTo($currentId, true);
			}
			
			//获取url中的参数(网上copy)
			function getQueryString() {  
			  var qs = location.search.substr(1), // 获取url中"?"符后的字串  
				args = {}, // 保存参数数据的对象
				items = qs.length ? qs.split("&") : [], // 取得每一个参数项,
				item = null,
				len = items.length;
			 
			  for(var i = 0; i < len; i++) {
				item = items[i].split("=");
				var name = decodeURIComponent(item[0]),
				  value = decodeURIComponent(item[1]);
				if(name) {
				  args[name] = value;
				}
			  }
			  return args;
			}
			
	 </script>
	</div>
	<div style="" id="content">
	<h1 style="text-align:center">波奇接口文档</h1>
	<h1>网站模块文档概览</h1><blockquote><p>基本概述</p></blockquote><h2>域名</h2><ul><li>本地环境域名 <a href="http://www.hearu.com">http://www.hearu.com</a></li><li>测试环境域名 <a href="http://www.hearu.com">http://test.hearu.com</a></li><li>生产环境域名 <a href="http://www.hearu.com">http://www.hearu.com</a></li></ul>
<br>
<p style="font-size: 12px">修改时间: 2018-01-29 14:42:36</p>
<br>
 </div>  <!-- 右侧内容结束  -->

 </body>
 </html>